home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 42
/
042.d81
/
small dos
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
27 lines
10 poke53280,.:poke53281,.
20 printchr$(142)chr$(8)"[147] [154]loadstar presents:"
30 print" small dos"
40 print" by richard curcio"
50 print" [153]copyright 1987"
60 print" [154]press space [154]to use small dos"
70 print" press q [154]to quit"
80 a=peek(203):ifa<>62anda<>60then80
90 ifa=62then60000
100 ca=(peek(45)+256*peek(46))-640
110 print"[147][154] place it at the top of memory (y[154]/n[154])?"
120 poke198,0:wait198,1:geta$
130 ifa$="n"then500
135 ifa$<>"y"then120
140 sysca:clr
400 print"small dos installed":ea=peek(36)+256*peek(37):ds=ea-511
410 printds"to"ea:print"sys"ds"[145][145][145]"
415 poke198,1:poke631,13:new
500 input"[154] where";ds:dh=int(ds/256):dl=ds-256*dh
502 ifds>1023andds<40448then510
505 ifds>49152andds<52736then510
507 print" illegal address":goto60
510 poke781,dl:poke782,dh:ca=ca+12:goto140
60000 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60010 ifer<>63thenend
60020 load"hello connect",8